import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询音频列表
export function listMusic(query) {
  return request({
    url: '/music/getMusicList',
    method: 'get',
    params: query
  })
}

// 删除音频
export function delMusic(picId) {
  return request({
    url: '/music/delMusicById/' + picId,
    method: 'delete'
  })
}

// 修改用户
export function updateMusic(data) {
  return request({
    url: '/music/updateMusic',
    method: 'put',
    data: data
  })
}

// 新增用户
export function addMusic(data) {
  return request({
    url: '/music/addMusic',
    method: 'post',
    data: data
  })
}
